package Eyjafjalla.action;

import Eyjafjalla.modifier.HeartMod;
import basemod.helpers.CardModifierManager;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.DrawCardAction;
import com.megacrit.cardcrawl.cards.AbstractCard;

public class MarkHeartAction extends AbstractGameAction {
    public MarkHeartAction(boolean isHand){
        this.hand = isHand;
    }

    boolean hand;

    @Override
    public void update() {
        if(hand){
            for(AbstractCard c: DrawCardAction.drawnCards){
                CardModifierManager.addModifier(c,new HeartMod());
            }
        }
        else {
            for(AbstractCard c: DrawCloudAction.drawnCards){
                CardModifierManager.addModifier(c,new HeartMod());
            }
        }
        this.isDone = true;
    }
}
